package pres.dnf.test.java.springcloud.client.hystrix.feign.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pres.dnf.test.java.springcloud.client.hystrix.feign.service.OpsConsumerService;

/**
 * @author dengfan
 * @version 1.0
 * @description
 * @date 2018/9/11 0011 17:21
 */
@RestController
public class OpsConsumerAPI {

    @Autowired
    private OpsConsumerService opsConsumerService;

    @RequestMapping(value = "/add")
    public Integer add(){
        return opsConsumerService.add(30,10);
    }


}
